import React, { FC, PropsWithChildren } from 'react';

interface Demo2Props {}

function Demo2Layout(props: PropsWithChildren<Demo2Props>) {
  return (
    <div style={{ padding: 50 }}>
      <h4>Demo2Layout</h4>
      {React.Children.map(props.children, child => {
        return React.cloneElement(child as any, { foo: 'bar' });
      })}
    </div>
  );
}

export default Demo2Layout;
